package br.edu.infnet.dto;

import java.io.Serializable;
import java.math.BigDecimal;

import org.dozer.DozerBeanMapper;
import org.dozer.Mapper;

import br.edu.infnet.model.DataAniversario;


/**
 * The persistent class for the data_aniversario database table.
 * 
 */

public class DataAniversarioDTO implements Serializable {
	private static final long serialVersionUID = 1L;

	private int pkDataConta;

	private String dataAniversarioConta;

	private BigDecimal valorData;


	private ContaDTO conta;

	public DataAniversarioDTO() {
	}

	public int getPkDataConta() {
		return this.pkDataConta;
	}

	public void setPkDataConta(int pkDataConta) {
		this.pkDataConta = pkDataConta;
	}

	public String getDataAniversarioConta() {
		return this.dataAniversarioConta;
	}

	public void setDataAniversarioConta(String dataAniversarioConta) {
		this.dataAniversarioConta = dataAniversarioConta;
	}

	public BigDecimal getValorData() {
		return this.valorData;
	}

	public void setValorData(BigDecimal valorData) {
		this.valorData = valorData;
	}

	public ContaDTO getConta() {
		return this.conta;
	}

	public void setConta(ContaDTO conta) {
		this.conta = conta;
	}
	
	public DataAniversario toEntity() {
		DataAniversario dto = new DataAniversario();
		
		/*Mapper mapper = new DozerBeanMapper();
        entity = mapper.map(this, DataAniversario.class);*/
        
		dto.setConta(conta.toEntity());
		dto.setDataAniversarioConta(dataAniversarioConta);
		dto.setPkDataConta(pkDataConta);
		dto.setValorData(valorData);
		
		
        return dto;
	}


}